import request from '@/utils/request'

// 用户进入燃烧跑酷页面
export function enterParkourHot(data) {
	return request({
		url: '/appParkour/enterParkourHot',
		method: 'get',
	})
}
//待参与用户的列表
export function getPreparedGameUserList() {
	return request({
		url: '/appParkour/getPreparedGameUserList',
		method: 'get',
	})
}
//获取燃烧跑酷实时状态
export function getParkourHotStatus() {
	return request({
		url: '/appParkour/getParkourHotStatus',
		method: 'get',
	})
}

// 获取被献祭房间id、
export function getSacrificedRoomId() {
	return request({
		url: '/appParkour/auth/getSacrificedRoomId',
		method: 'get',
	})
}


// 获取被献祭房间id、
export function enterRoom(data) {
	return request({
		// url: '/appParkour​/enterRoom?amount=' + data.amount + "&memberId=" + data.memberId + '&raceTrackId=' + data.raceTrackId,
		url: '/appParkour/enterRoom?amount=' + data.amount + "&memberId=" + data.memberId + '&raceTrackId=' +
			data.raceTrackId,
		method: 'get',
	})
}

// 获取用户道具余额

export function getUserBalance(data) {
	return request({
		url: '/appParkour/getUserBalance?memberId=' + data.memberId + "&propId=" + data.propId,
		method: 'get',
	})
}
//获取燃烧跑酷100次记录
export function getRecent100SacrificedRecord() {
	return request({
		url: '/appParkour/auth/getRecent100SacrificedRecord',
		method: 'get',
	})
}
//获取燃烧跑酷10次记录
export function getRecent10SacrificedRecord() {
	return request({
		url: '/appParkour/auth/getRecent10SacrificedRecord',
		method: 'get',
	})
}

//获取我的燃烧跑酷记录
export function getMyParkourColdRecord() {
	return request({
		url: '/appParkour/getMyParkourColdRecord/50',
		method: 'get',
	})
}

// 用户退出燃烧跑酷页面

export function leaveBurn(data) {
	return request({
		url: '/appParkour/leaveParkourHot',
		method: 'get',
	})
}


// 最新 燃烧宝库
export function saveTimeSandsToParkourVault(data) {
	return request({
		url: '/appParkour/saveTimeSandsToParkourVault?amount=' + data.amount,
		method: 'get',
	})
}

// 获取用户本轮奖励
export function getUserParkourHotCurrentRecord() {
	return request({
		url: '/appParkour/getUserParkourHotCurrentRecord',
		method: 'get',
	})
}


// 获取时之匙和时之匙LP的兑换关系 1 时之匙Lp = x * 时之匙
export function exchangeRate() {
	return request({
		url: '/appParkour/getTimeKeyLpToTimeKeyExchangeRate',
		method: 'get',
	})
}
// 用户从燃烧宝库取出时之匙
export function getTimeKeysFrom(data) {
	return request({
		url: '/appParkour/getTimeKeysFromParkourVault?amount=' + data.amount,
		method: 'get',
	})
}

// 用户从燃烧宝库主页面信息
export function getUserParkourVaultInfo(data) {
	return request({
		url: '/appParkour/getUserParkourVaultInfo',
		method: 'get',
	})
}
// 获取本周跑酷排行榜
export function getThisWeekRank() {
	return request({
		url: '/appParkour/getParkourHotThisWeekRank',
		method: 'get',
	})
}
// 获取上周跑酷排行榜
export function getLastWeekRank() {
	return request({
		url: '/appParkour/getParkourHotLastWeekRank',
		method: 'get',
	})
}